﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cup_DetalheCupom.ascx.cs" Inherits="Ecommerce.Web.Admin.Controles.cup_DetalheCupom" %>
<script src="../Scripts/jquery.click-calendario-1.0.js" type="text/javascript"></script>
<link href="../Styles/jquery.click-calendario-1.0.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery.maskedinput-1.3.min.js" type="text/javascript"></script>

<script type="text/jscript">

    $(document).ready(function () {
        $('#<%=txtDataInicio.ClientID %>').focus(function () { $(this).calendario({ target: '#<%=txtDataInicio.ClientID %>', top: 0, left: 130 }); });
        $('#<%=txtDataFim.ClientID %>').focus(function () { $(this).calendario({ target: '#<%=txtDataFim.ClientID %>', top: 0, left: 130 }); });
        $("#<%=txtValorDesconto.ClientID%>").mask('99,99', { placeholder: " " });
    });

</script>

    <div style="text-align:right">
        <asp:Button ID="btnSalvar" runat="server" Text="Salvar" CssClass="Botao_Toolbox" onclick="btnSalvar_Click" />
        <hr />
    </div>
    
    <asp:HiddenField ID="hddIdentificadorCupom" runat="server" />

    <asp:UpdatePanel ID="updInfoCupom" runat="server">
        
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSalvar" EventName="Click" />
        </Triggers>
        
        <ContentTemplate>
        
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    <span id='loading' class="Gauge_Posicao">
                        <img src="../Imagens/load_icon.gif" border="0" alt="Carregando..." />
                    </span>
                </ProgressTemplate>
            </asp:UpdateProgress>
       
        
            <table cellpadding="2" cellspacing="2">
                <tr>
                    <td>
                        <asp:Label ID="lblCodigo" runat="server" CssClass="Label_Formulario" Text="Código Cupom:"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtCodigoCupom" CssClass="Textbox" Width="120px" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtCodigoCupom"></asp:RequiredFieldValidator>
                    </td>
                </tr>

                <tr>
                    <td>
                        <asp:Label ID="lblNome" runat="server" CssClass="Label_Formulario" Text="Data Inicio Validade:"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtDataInicio" CssClass="Textbox" runat="server" Width="100px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtDataInicio"></asp:RequiredFieldValidator>
                    </td>
                </tr>

                <tr>
                    <td>
                        <asp:Label ID="lblDescAbreviada" runat="server" CssClass="Label_Formulario" Text="Data Fim Validade:"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtDataFim" CssClass="Textbox" Width="100px" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtDataFim"></asp:RequiredFieldValidator>
                    </td>
                </tr>

                <tr>
                    <td>
                        <asp:Label ID="lblDescricao" runat="server" CssClass="Label_Formulario" Text="Valor Desconto:"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtValorDesconto" CssClass="Textbox" Width="120px" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="txtValorDesconto"></asp:RequiredFieldValidator>
                    </td>
                </tr>

                 <tr>
                    <td>
                        <asp:Label ID="lblCategoria" runat="server" CssClass="Label_Formulario" Text="Ativo:"></asp:Label></td>
                    <td>
                        <asp:CheckBox ID="chkAtivo" runat="server" />
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" CssClass="Label_Formulario" Text="Ativação Única:"></asp:Label></td>
                    <td>
                        <asp:CheckBox ID="chkAtivacaoUnica" runat="server" />
                    </td>
                </tr>

            </table>
        </ContentTemplate> 
        

    </asp:UpdatePanel>